/*
 * @Author: 可以清心
 * @Description: 
 * @Date: 2022-11-24 13:58:48
 * @LastEditTime: 2022-11-30 14:48:55
 */
import Vue from 'vue'
import VueRouter from 'vue-router'

import JdfLogin from '../components/login/index.vue'
// import JdfForget from '../components/forget/index.vue'
import NoPermission from '../components/417/index.vue'
import JdfForm from '../components/form/index.vue'
Vue.use(VueRouter)


const routes = [
    // {
    //     path: '/forget',
    //     component: JdfForget
    // },
    {
        path: '/',
        redirect: '/form'
    },
    {
        path: '/form',
        component: JdfForm,
        children: [
            {
                path: '/',
                redirect: '/login'
            },
            {
                path: '/login',
                component: JdfLogin
            }
        ]
    },
    {
        path: '/417',
        component: NoPermission
    }
]

const router = new VueRouter({
    routes
})

export default router